//
//  AlertManager.h
//  wozhua
//
//  Created by 王洋 on 14/12/26.
//  Copyright (c) 2014年 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CustomAlertAction : UIAlertAction

@property (assign, nonatomic) NSInteger tag;

@end

@interface AlertManager : NSObject<UIAlertViewDelegate, UIActionSheetDelegate>

+ (instancetype)sharedManager;

- (void)initActionSheetWithTitle:(NSString *)title cancelButton:(NSString *)cancelTitle destructiveButton:(NSString *)destructiveTitle otherButtons:(NSArray *)btns block:(void (^)(NSInteger buttonIndex))block inViewController:(UIViewController *)dvc;

- (void)initAlertViewWithTitle:(NSString *)title message:(NSString *)message cancelButton:(NSString *)cancelTitle otherButtons:(NSArray *)btns block:(void (^)(NSInteger buttonIndex))block inViewController:(UIViewController *)dvc;

@end
